package com.test.VT.CreateVT;

import com.test.VT.Thread.CustomThread;

/**
 * 创建虚拟线程
 * @author caoqianfan
 * @date 2024/9/27 11:20
 */
public class By_StartVirtualThread {
    public static void main(String[] args) {
        CustomThread customThread = new CustomThread();
        // 创建并且启动虚拟线程
        Thread.startVirtualThread(customThread);
    }
}